﻿<Window xmlns:my="clr-namespace:Brjnk.Common.UI;assembly=Common"  x:Class="Brjnk.GpxExplorer.UI.ExceptionWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:l="clr-namespace:Brjnk.GpxExplorer.Localization"
        FocusManager.FocusedElement="{Binding ElementName=okButton}"
        WindowStartupLocation="CenterOwner"
        Title="{l:Loc titleException}" Height="400" Width="500">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Style="{StaticResource ErrorStyle}" Text="{l:Loc exceptionMessage}" />
        <my:ObjectPresenter Grid.Row="1" Name="objectPresenter" />
        <Grid Grid.Row="2">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>

            <TextBlock Grid.Column="0" Grid.Row="0" Style="{StaticResource LinkStyle}" Text="http://gpxexplorer.codeplex.com/" />
            <StackPanel Grid.Column="0" Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" Margin="0 0 10 0">
                <TextBlock Text="GpxExplorer" Margin="0" />
                <TextBlock Text="@outlook.cz" Margin="0" />
            </StackPanel>
            <Button Grid.Column="1" Grid.RowSpan="2" Content="{l:Loc exceptionCopyToClipboard}" Click="Button_Click" />
            <Button IsDefault="True" Grid.Column="2" Grid.RowSpan="2" Click="Button_Click_1" Content="{l:Loc ok}" Name="okButton" />
        </Grid>
    </Grid>
</Window>